package com.wetao.lib_common.bean.response;

import com.google.gson.Gson;
import com.wetao.lib_common.base.Base2Response;

import java.io.Serializable;
import java.util.List;

/**
 * author: zhouyh
 * created on: 2021/6/18 9:02 下午
 * description: 知识考点
 */
public class ExaminationPointInfo extends Base2Response implements Serializable {


   private List<MaterialNode> data;

   public List<MaterialNode> getData() {
      return data;
   }

   public static ExaminationPointInfo objectFromData(String str) {

      return new Gson().fromJson(str, ExaminationPointInfo.class);
   }

   public static class MaterialNode implements Serializable {
      /**
       * id : 1971
       * name : 语言文字应用
       * parentId : 0
       * materialNodes : [{"id":1972,"name":"字音","parentId":1971,"materialNodes":[{"id":1973,"name":"高考常考字音","parentId":1972,"materialNodes":[]}]},{"id":1974,"name":"字形","parentId":1971,"materialNodes":[{"id":1975,"name":"高考常见错别字","parentId":1974,"materialNodes":[]}]},{"id":1976,"name":"词的分类","parentId":1971,"materialNodes":[{"id":1977,"name":"名词","parentId":1976,"materialNodes":[]},{"id":1978,"name":"动词","parentId":1976,"materialNodes":[]},{"id":1979,"name":"形容词","parentId":1976,"materialNodes":[]},{"id":1980,"name":"数词","parentId":1976,"materialNodes":[]},{"id":1981,"name":"量词","parentId":1976,"materialNodes":[]},{"id":1982,"name":"代词","parentId":1976,"materialNodes":[]},{"id":1983,"name":"副词","parentId":1976,"materialNodes":[]},{"id":1984,"name":"介词","parentId":1976,"materialNodes":[]},{"id":1985,"name":"连词","parentId":1976,"materialNodes":[]},{"id":1986,"name":"助词","parentId":1976,"materialNodes":[]},{"id":1987,"name":"叹词","parentId":1976,"materialNodes":[]},{"id":1988,"name":"拟声词","parentId":1976,"materialNodes":[]}]},{"id":1989,"name":"词语","parentId":1971,"materialNodes":[{"id":1990,"name":"常见易混实词辨析","parentId":1989,"materialNodes":[]},{"id":1991,"name":"常见易混虚词辨析","parentId":1989,"materialNodes":[]},{"id":1992,"name":"高考高频成语300例","parentId":1989,"materialNodes":[]},{"id":1993,"name":"常考近义成语116组","parentId":1989,"materialNodes":[]},{"id":1994,"name":"多义成语90例","parentId":1989,"materialNodes":[]},{"id":1995,"name":"易用错成语240例","parentId":1989,"materialNodes":[]}]},{"id":1996,"name":"句子成分","parentId":1971,"materialNodes":[{"id":1997,"name":"主语","parentId":1996,"materialNodes":[]},{"id":1998,"name":"谓语","parentId":1996,"materialNodes":[]},{"id":1999,"name":"宾语","parentId":1996,"materialNodes":[]},{"id":2000,"name":"定语","parentId":1996,"materialNodes":[]},{"id":2001,"name":"状语","parentId":1996,"materialNodes":[]},{"id":2002,"name":"补语","parentId":1996,"materialNodes":[]}]},{"id":2003,"name":"复句种类","parentId":1971,"materialNodes":[{"id":2004,"name":"并列复句","parentId":2003,"materialNodes":[]},{"id":2005,"name":"顺承复句","parentId":2003,"materialNodes":[]},{"id":2006,"name":"选择复句","parentId":2003,"materialNodes":[]},{"id":2007,"name":"递进复句","parentId":2003,"materialNodes":[]},{"id":2008,"name":"转折复句","parentId":2003,"materialNodes":[]},{"id":2009,"name":"假设复句","parentId":2003,"materialNodes":[]},{"id":2010,"name":"条件复句","parentId":2003,"materialNodes":[]},{"id":2011,"name":"因果复句","parentId":2003,"materialNodes":[]},{"id":2012,"name":"目的复句","parentId":2003,"materialNodes":[]}]},{"id":2013,"name":"病句类型","parentId":1971,"materialNodes":[{"id":2014,"name":"语序不当","parentId":2013,"materialNodes":[]},{"id":2015,"name":"搭配不当","parentId":2013,"materialNodes":[]},{"id":2016,"name":"成分残缺或赘余","parentId":2013,"materialNodes":[]},{"id":2017,"name":"表意不明","parentId":2013,"materialNodes":[]},{"id":2018,"name":"不合逻辑","parentId":2013,"materialNodes":[]}]},{"id":2019,"name":"扩展语句","parentId":1971,"materialNodes":[{"id":2020,"name":"词语连缀型扩展","parentId":2019,"materialNodes":[]},{"id":2021,"name":"主题阐发型扩展","parentId":2019,"materialNodes":[]},{"id":2022,"name":"续写补写型扩展","parentId":2019,"materialNodes":[]},{"id":2023,"name":"情景描绘型扩展","parentId":2019,"materialNodes":[]}]},{"id":2024,"name":"压缩语段","parentId":1971,"materialNodes":[{"id":2025,"name":"下定义类","parentId":2024,"materialNodes":[]},{"id":2026,"name":"概括内容类","parentId":2024,"materialNodes":[]},{"id":2027,"name":"新闻类","parentId":2024,"materialNodes":[]},{"id":2028,"name":"提炼要点类","parentId":2024,"materialNodes":[]}]},{"id":2029,"name":"修辞手法","parentId":1971,"materialNodes":[{"id":2030,"name":"比喻","parentId":2029,"materialNodes":[]},{"id":2031,"name":"比拟","parentId":2029,"materialNodes":[]},{"id":2032,"name":"借代","parentId":2029,"materialNodes":[]},{"id":2033,"name":"夸张","parentId":2029,"materialNodes":[]},{"id":2034,"name":"对偶","parentId":2029,"materialNodes":[]},{"id":2035,"name":"排比","parentId":2029,"materialNodes":[]},{"id":2036,"name":"反复","parentId":2029,"materialNodes":[]},{"id":2037,"name":"设问","parentId":2029,"materialNodes":[]},{"id":2038,"name":"反问","parentId":2029,"materialNodes":[]}]},{"id":2039,"name":"仿用句式","parentId":1971,"materialNodes":[{"id":2040,"name":"话题一致","parentId":2039,"materialNodes":[]},{"id":2041,"name":"句式相同","parentId":2039,"materialNodes":[]},{"id":2042,"name":"修辞相同","parentId":2039,"materialNodes":[]},{"id":2043,"name":"结构相同","parentId":2039,"materialNodes":[]},{"id":2044,"name":"手法相同","parentId":2039,"materialNodes":[]},{"id":2045,"name":"情感吻合","parentId":2039,"materialNodes":[]},{"id":2046,"name":"色彩一致","parentId":2039,"materialNodes":[]}]},{"id":2047,"name":"变换句式","parentId":1971,"materialNodes":[{"id":2048,"name":"长句与短句变换","parentId":2047,"materialNodes":[]},{"id":2049,"name":"主动句与被动句变换","parentId":2047,"materialNodes":[]},{"id":2050,"name":"肯定句与否定句变换","parentId":2047,"materialNodes":[]},{"id":2051,"name":"单句与复句变换","parentId":2047,"materialNodes":[]},{"id":2052,"name":"常式句与变式句变换","parentId":2047,"materialNodes":[]},{"id":2053,"name":"整句与散句变换","parentId":2047,"materialNodes":[]}]},{"id":2054,"name":"语言表达","parentId":1971,"materialNodes":[{"id":2055,"name":"简明","parentId":2054,"materialNodes":[]},{"id":2056,"name":"连贯","parentId":2054,"materialNodes":[]},{"id":2057,"name":"得体","parentId":2054,"materialNodes":[]},{"id":2058,"name":"准确","parentId":2054,"materialNodes":[]},{"id":2059,"name":"鲜明","parentId":2054,"materialNodes":[]},{"id":2060,"name":"生动","parentId":2054,"materialNodes":[]}]},{"id":2061,"name":"谦辞与敬辞（得体）","parentId":1971,"materialNodes":[{"id":2062,"name":"常见敬辞15类","parentId":2061,"materialNodes":[]},{"id":2063,"name":"常见谦辞12类","parentId":2061,"materialNodes":[]}]},{"id":2064,"name":"图文转换","parentId":1971,"materialNodes":[{"id":2065,"name":"结构图","parentId":2064,"materialNodes":[]},{"id":2066,"name":"流程图","parentId":2064,"materialNodes":[]},{"id":2067,"name":"数据分析图表","parentId":2064,"materialNodes":[]},{"id":2068,"name":"柱状图（直方图）","parentId":2064,"materialNodes":[]},{"id":2069,"name":"曲线图（折线图）","parentId":2064,"materialNodes":[]},{"id":2070,"name":"图标与图画","parentId":2064,"materialNodes":[]},{"id":2071,"name":"方位图","parentId":2064,"materialNodes":[]}]}]
       */

      private Integer id;
      private String name;
      private Integer parentId;
      private List<MaterialNode> materialNodes;

      public static MaterialNode objectFromData(String str) {

         return new Gson().fromJson(str, MaterialNode.class);
      }

      public Integer getId() {
         return id;
      }

      public void setId(Integer id) {
         this.id = id;
      }

      public String getName() {
         return name;
      }

      public void setName(String name) {
         this.name = name;
      }

      public Integer getParentId() {
         return parentId;
      }

      public void setParentId(Integer parentId) {
         this.parentId = parentId;
      }

      public List<MaterialNode> getMaterialNodes() {
         return materialNodes;
      }

      public void setMaterialNodes(List<MaterialNode> materialNodes) {
         this.materialNodes = materialNodes;
      }


   }
}
